package top.infopub.mgr.bpa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.ProContractSubDao;
import top.infopub.model.bpa.ProContractSub;
import top.infopub.mgr.bpa.service.ProContractSubService;

@Service
public class ProContractSubServiceImpl extends GenericServiceImpl<ProContractSub, String> implements
		ProContractSubService {

	@Autowired
	private ProContractSubDao proContractSubDao;
	
	@Override
	public GenericDao<ProContractSub, String> getDao() {
		return proContractSubDao;
	}

    @Override
    public List<ProContractSub> selectBySub(String proContractId) {
        return proContractSubDao.selectBySub(proContractId);
    }

    @Override
    public List<ProContractSub> selectByContractSubs(String proContractId) {
        return proContractSubDao.selectByContractSubs(proContractId);
    }

}